package com.restaurant.springboot.service;

import com.restaurant.springboot.entity.dto.CommentDTO;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;


public interface CommentService {

    List<Map<String, Object>> findAll(Pageable page);

    Map<String, Object> getCommentById(Integer id);

    boolean insertComment(CommentDTO comment);

    void deleteComment(Integer id);

    void praise(Integer commentId);

    boolean isExistsComment(int orderId);

}
